<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>false,

	'clientOptions'=>array(
		'validateOnSubmit'=>false,
	),
)); ?>

	
	<span class="signin">sign in</span>
	
		<?php //echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username', array('placeholder'=>'login','class'=>'login' )); ?>
		<?php //echo $form->error($model,'username'); ?>
	

	
		<?php //echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password', array('placeholder'=>'password','class'=>'password' )); ?>
		<?php //echo $form->error($model,'password'); ?>
		
	
		<?php echo CHtml::ajaxSubmitButton('confirm','appcamel/index.php?r=ajax/login',array(
    'type' => 'POST',
    'update' => '#login_alert',
	'complete'=>'js:function(){
            login_check();
        }',
),
array(
   'type' => 'submit','class'=>'submit'
)); ?>
	

	<p>
		<?php echo $form->checkBox($model,'rememberMe',array('id'=>'check' )); ?> 
		<?php //echo $form->label($model,'rememberMe'); ?>
		<?php //echo $form->error($model,'rememberMe'); ?>
	<label for="check">Remember me on this computer</label></p>

	

<?php $this->endWidget(); ?>
</div><!-- form -->
